import java.io.IOException;
import java.io.PrintWriter;
import java.util.Enumeration;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.*;

public class LoginCtx extends HttpServlet{
	public void doGet(HttpServletRequest req,HttpServletResponse res)throws ServletException,IOException{
		PrintWriter out=res.getWriter();
		ServletContext ctx=getServletContext();
		
		Enumeration en=ctx.getInitParameterNames();
		
		while(en.hasMoreElements()){
			Object obj=en.nextElement();
			String pn=(String)obj;
			String pv=ctx.getInitParameter(pn);
			out.println("<h1>"+pv+"is value of="+pn+"</h1>");
		}
	}

}
